package exam.test19;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Endstart
 * Date: 2020-12-22
 * Time: 2:55
 */
public class Main {

    public static void main(String[] args) {
        System.out.println(foo(10));

    }

    private static boolean foo(int n) {
        if (n == 1) {
            return false;
        }
        int k = 1;
        for (int i = 0; i <= n; i++) {
            if (foo(n - 1)) {
                k = 2 * k;
            }
        }
        return k > n;

    }


}
